import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'
import { Collection } from 'src/app/@core/interface/manage'

@Component({
  selector: 'app-collection-item',
  templateUrl: './collection-item.component.html',
  styleUrls: ['./collection-item.component.scss']
})
export class CollectionItemComponent implements OnInit {
  @Input() collection: Collection
  @Output() apply = new EventEmitter<Collection>()
  @Output() getList = new EventEmitter()

  constructor() { }

  ngOnInit(): void { }

  callGetList() {
    this.getList.emit()
  }

  applyCollecti(item: Collection) {
    this.apply.next(item)
  }
}
